<?php use_stylesheet('forms.css') //load css ?>
<?php
//Partials that don't need a layout
if($version == 'showDocuments'){
    include_partial('documents', array('order'=>$order, 'company'=>$company, 'contact'=>$contact, 'items'=>$items, 'materials'=>$materials));
} else if($version == 'showPriceList') {
    include_partial('priceList', array('today'=>$today));
}
else {
//Partials that do need a layout
?>
    <div id="nav">
            <ul>
                <a href="<?php echo url_for('sales_index_contacts') ?>"><li class="no_sel"><?php echo image_tag('Icons/ic_menu_contacts.png') ?>Contacts</li></a>
                <a href="<?php echo url_for('sales_index_orders') ?>"><li class="no_sel"><?php echo image_tag('Icons/ic_menu_orders.png') ?>Orders</li></a>
                <a href="<?php echo url_for('sales_index_pnp') ?>"><li class="no_sel"><span style="float: left;"><?php echo image_tag('Icons/ic_menu_products_parts.png') ?></span><span style="float: left; margin: -2px 0 0 0;">Materials</span><span style=" float: left; margin-top: -5px;">&amp; Products</span></li></a>
                <a href="<?php echo url_for('purchase_index') ?>"><li class="no_sel"><?php echo image_tag('Icons/ic_menu_purchase.png') ?>Purchase</li></a>
                <a href="<?php echo url_for('stock_index') ?>"><li class="no_sel"><?php echo image_tag('Icons/ic_menu_stock.png') ?>Stock</li></a>
                <?php if($sf_user->isSuperAdmin()){ ?>
                <a href="<?php echo url_for('admin_index') ?>"><li class="no_sel"><?php echo image_tag('Icons/ic_menu_stock.png') ?>Admin</li></a>
                <?php } ?>
            </ul>
    </div>
    <div id="page">
        <?php
        //Add any new partials that need to be show with layout here
        ?>
</div>
<?php } ?>